Cosmos DB - POST operation for retrieving read only keys#3233
Cosmos DB - POST operation for retrieving read only keys#3233anuchandy merged 2 commits intoAzure:masterfrom
Conversation
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-libraries-for-javaNothing to generate for azure-libraries-for-java |
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
| "200": { | ||
| "description": "The operation completed successfully.", | ||
| "schema": { | ||
| "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" |
There was a problem hiding this comment.
It seems both DatabaseAccounts_GetReadOnlyKeys and DatabaseAccounts_ListReadOnlyKeys returns the same result. Are we planning to deprecate one of this eventually?
There was a problem hiding this comment.
Yes the GET is to be deprecated
There was a problem hiding this comment.
thank you. Is this new POST action to retrieve the keys a long running operation?
There was a problem hiding this comment.
@dmakwana any reason why we use POST for listing keys?
Adding Gaurav - @ravbhatnagar any concern here from ARM side? the context is:
- There is already an operation to retrieve the database keys which is based on HTTP GET
- We are introducing a new operation for retrieving the same database keys which is based on HTTP POST (this is not a long running operation)
- The operation based on GET will be deprecated.
There was a problem hiding this comment.
@anuchandy - Yes, this is the right way. secrets like keys should not be exposed via a GET. Right way is through a POST. Thanks for checking!
Automation for azure-sdk-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger